package cn.com.spring.enums;

import cn.com.spring.annotation.After;
import cn.com.spring.annotation.Around;
import cn.com.spring.annotation.Before;
import lombok.Getter;

import java.lang.annotation.Annotation;

/**
 * 切面枚举
 *
 * @author LiuGuodong
 * @date 2024/02/02
 */
@Getter
public enum AspectEnum {

    AROUND(Around.class, 1),
    BEFORE(Before.class, 0),
    AFTER(After.class, 2),
    ;

    private final Class<? extends Annotation> value;
    private final int order;

    AspectEnum(Class<? extends Annotation> aroundClass, int order) {
        this.value = aroundClass;
        this.order = order;
    }

}
